package c.f.b.a.a.a.b;

import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.view.View;
import android.widget.CheckBox;
import com.huawei.hms.game.a;
import com.huawei.hms.game.d;
import com.huawei.hms.game.f0;
import com.huawei.hms.game.l;
import com.huawei.hms.game.y;

public final class b implements OnClickListener {
    public final /* synthetic */ View a;
    public final /* synthetic */ Context b;
    public final /* synthetic */ a c;

    public b(View view, Context context, a aVar) {
        this.a = view;
        this.b = context;
        this.c = aVar;
    }

    public void onClick(DialogInterface dialogInterface, int i) {
        View view = this.a;
        Context context = this.b;
        a aVar = this.c;
        if (((CheckBox) view.findViewById(f0.c("game_id_buoy_hide_guide_remind"))).isChecked()) {
            y.a().c(context);
        }
        l.a().a(context, aVar, 2);
        if (aVar != null) {
            d.a().b(context, aVar);
        }
        if (context instanceof Activity) {
            if (!"com.huawei.gamebox".equals(context.getPackageName())) {
                ((Activity) context).finish();
            }
        }
    }
}
